package com.campus.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单评价表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-04-18
 */
@Getter
@Setter
@TableName("order_comment")
@ApiModel(value = "OrderComment对象", description = "订单评价表")
public class OrderComment extends IntegerIdBaseEntity<OrderComment> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单ID")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("商户ID")
    @TableField("merchant_id")
    private Integer merchantId;

    @ApiModelProperty("评分")
    @TableField("rating")
    private BigDecimal rating;

    @ApiModelProperty("评价内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("图片URL，多个以逗号分隔")
    @TableField("images")
    private String images;

    @ApiModelProperty("商家回复")
    @TableField("reply")
    private String reply;

    @ApiModelProperty("回复时间")
    @TableField("reply_time")
    private LocalDateTime replyTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
